package cn.edu.lingnan.service;

import cn.edu.lingnan.dao.TeacherDao;
import cn.edu.lingnan.dao.TeacherDaoImp;
import cn.edu.lingnan.pojo.Teacher;

import java.util.List;

public class TeacherServiceImp implements TeacherService{
    TeacherDao teacherDao=new TeacherDaoImp();
    @Override
    public List<Teacher> pageQuery(Integer page, Integer pageSize) {
        return  teacherDao.pageQuery(page,pageSize);
    }

    @Override
    public Integer getTotalTeachers() {
        return teacherDao.getTotalTeachers();
    }

    @Override
    public List<Teacher> getTeachersByName(String TeacherName) {
        return teacherDao.getTeachersByName(TeacherName);
    }
}
